import react from "@vitejs/plugin-react";
import path from "path";
import { defineConfig } from "vite";
import svgr from "vite-plugin-svgr";

// https://vite.dev/config/
export default defineConfig({
  plugins: [react(), svgr({ svgrOptions: { icon: true } })],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
      "@@": path.resolve(__dirname, "src/hy_dev_lib/src"),
      hy_dev_lib: path.resolve(__dirname, "src/hy_dev_lib/src"),
    },
  },

  server: {
    open: true,
    host: "0.0.0.0",
    port: 3099,
  },
});
